Shopglut\showCase\Swatches\Swatches D

Total Complexity 201
Dependencies 2
Dependents 1
Total lines 911
Lines of code 667
Logical lines of code 391
Comment lines 119
Methods 26
Properties 4

Methods 26

Method Rating Maintainability Complexity Lines of code
variation_attribute_custom_html()
D
24
44 150
variation_attribute_html_shop_page()
B
37 19 75
get_product_swatches()
B
43 16 46
catalog_show_attr_shop_page()
A
47 14 34
inline_css()
A
48 13 28
get_attr_term_color_image()
A
50 10 27
shopgs_ajax_add_to_cart()
A
46 9 34
get_attr_term_bicolor_data()
A
51 8 26
get_remove_attr_class()
A
53 8 24
enqueue_scripts()
S
50 7 26
get_attr_term_label()
S
61 7 11
render_bicolor_swatches()
S
49 5 31
__construct()
S
56 5 15
shortcode_functionality()
S
58 5 15
get_attr_option_by_sorting()
S
51 4 27
get_swatches_position()
S
53 3 26
label_position_class()
S
62 4 11
get_attr_type_by_name()
S
63 4 9
check_theme_compatibility()
S
68 3 7
requires_shop_settings()
S
71 3 6
shop_page_add_to_cart_args()
S
65 2 8
is_required_page()
S
71 2 6
create_slug()
S
64 2 9
get_instance()
S
70 2 7
requires_global_settings()
S
73 1 6
shopgs_ajax_variation_threshold()
S
82 1 3